//
//  XiangShangTableCell.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/9.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "XiangShangTableCell.h"

@implementation XiangShangTableCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.xSImage = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, self.frame.size.width/2, 90)];
        [self.contentView addSubview:self.xSImage];
        
        self.yiBaoMingLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/2+10, 10, 50, 10)];
        [self.contentView addSubview:self.yiBaoMingLabel];
        
        self.pinPaiLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/2 +10, 25, 70, 10)];
        [self.contentView addSubview:self.pinPaiLabel];
        
        self.huoDongTime = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/2+10, 40, 70, 10)];
        [self.contentView addSubview:self.huoDongTime];
        
        
        self.addLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/2+10, 60, 100, 15)];
        [self.contentView addSubview:self.addLabel];
        
        self.baoMing = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/2+30, 80, 55, 20)];
        self.baoMing.text = @"马上报名";
        self.baoMing.font = [UIFont systemFontOfSize:12];
        self.baoMing.textColor = [UIColor whiteColor];
//        self.baoMing.center = self.center;
        [self.contentView addSubview:self.baoMing];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
